import { Observer } from "mobx-vue"
import { Component, Vue } from "vue-property-decorator";;
@Observer
@Component({
  props: {
    clear: {
      type: Boolean,
      default: false
    }
  }
})
export default class MemberAdd extends Vue {
    isShowModel: boolean = false;
    formItem:any={
        name:"",
        street_code:""
    }
    mounted() {
      let vm: any = this;
      vm.isShowModel = true;
    }
    //关闭
  close() {
    let vm: any = this;
    let xwindow: any = window
    vm.isShowModel = false;
    if (!vm.clear) {
      xwindow.clearBodyStyle()
    }
    vm.$emit('close')
  }
  //确定
  async confirm() {
    let vm: any = this;
    let param=vm.formItem
    console.log(param)
  }
}